<?php
	include '../init.php';
	if (isset($_GET['id'])&&(int)$_GET['id']>0) {
		$id=(int)$_GET['id'];
		echo $sql="DELETE FROM category WHERE `id`='{$id}';";
		$r=$mysql->del($sql);
		header("location:index.php");
	}
?>